package com.sky.convertor;

import com.sky.dto.EmployeeDTO;
import com.sky.entity.Employee;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface EmployeeConvertor {
    EmployeeConvertor  INSTANCE = Mappers.getMapper(EmployeeConvertor.class);

    Employee convertorToException(EmployeeDTO employeeDTO);

    EmployeeDTO convertorToExceptionDto(Employee employee);

}
